import store from "@/store";

export default {
    handleOut(v,password) {
        window.NimCefWebInstance.call('cppFunctionInvoke', {cmd: v,password:password}, (error, result) => {
            console.log(error)
            console.log(result)
        })
    }
};

((obj) => {
    if (obj) {
        obj.register('jsFunctionInvoke', (param) => {
            // alert(JSON.stringify(param.data))
            store.dispatch('clientMessage/getClientData', param.data).then(res => (console.log(res)))
        })
    }
})(window.NimCefWebInstance)
